/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jjsoft.celularessuc.gco.ui;

import javax.swing.JOptionPane;
import javax.swing.UIManager;

/**
 *
 * @author Johnny
 */
public class Run {
    public static void main(String[] args)
    {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            System.out.println("Error setting native LAF: " + e);
        }
       VInicio.getInstance().show();
       try{
           new VLoggin().show();
       }
       catch(java.lang.ExceptionInInitializerError ex)
       {
           VInicio.getInstance().dispose();
           JOptionPane.showMessageDialog(null,"No se ha podido establecer una conexión con el servidor" ,"Error de Conexión",JOptionPane.ERROR_MESSAGE);
           System.exit(0);
       }
       
    }
}
